﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="delete.aspx.cs" Inherits="order_delete" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <link href="../css/addbook.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
        <div class="wrap">
	<div class="top">
    	<div class="top1">
        
           
        </div>
        
     </div>
            
        
    <div class="shortnfo">
         <h2>当前位置：订单管理->订单回收</h2>
     <div class="menuitems">
        
       

           <ul>
                      <li><a  href="../master/index.aspx" runat="server">首页</a></li>
                       <li><a  href="~/order/select.aspx" runat="server">查询订单</a></li>
                      <li><a    href="~/order/updateorder.aspx" runat="server">修改订单</a></li>
                     
                      <li><a href="../master/order.aspx">退出</a></li>
                  </ul>
         
     </div>
    </div>
            <div class="content">
                 <table border="0" style="table-layout:fixed;width:100%; text-align:left;height:100%" >

                      <tr>
    <td>订单号：</td>
    <td>
        <asp:TextBox ID="num" runat="server" Width="126px"></asp:TextBox>
                          </td>
    <td>状态：</td>
    <td colspan="2">
        <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="状态" DataValueField="状态">
        </asp:DropDownList>
                          </td>
  </tr>
  <tr>
    <td>商品名称：</td>
    <td>
        <asp:TextBox ID="name" runat="server" Width="120px"></asp:TextBox>
      </td>
    <td>付款时间：</td>
    <td>
        <asp:TextBox ID="date" runat="server" Width="134px"></asp:TextBox>
      </td>
    <td>
        <asp:Button ID="Button1" runat="server" Text="查找" OnClick="Button1_Click" />
      </td>
  </tr>
  <tr>
    <td colspan="5">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="订单号" OnRowDeleting="GridView1_RowDeleting" AllowPaging="true" PageSize="5" OnPageIndexChanging="GridView1_PageIndexChanging" Height="100%" Width="100%">
            <Columns>
                <asp:BoundField DataField="订单号" HeaderText="订单号" ReadOnly="True" SortExpression="订单号">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="付款时间" DataFormatString="{0:d}" HeaderText="付款时间" SortExpression="付款时间">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="商品名称" HeaderText="商品名称" SortExpression="商品名称">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="数量" HeaderText="数量" SortExpression="数量">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="总价" HeaderText="总价" SortExpression="总价">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="状态" HeaderText="状态" SortExpression="状态">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="用户" HeaderText="用户" SortExpression="用户">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" CommandName="Delete" 
                            ImageUrl="~/image_oracle/BtnDelete.gif" 
                            onclientclick="return confirm('确定删除吗？');" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Center" />
            <RowStyle Height="46px" HorizontalAlign="Center" />
        </asp:GridView>

        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString8 %>" ProviderName="<%$ ConnectionStrings:ConnectionString8.ProviderName %>" SelectCommand="select * from orderdetails"></asp:SqlDataSource>

    </td>
  </tr>


                     </table>

            </div>
             <div class="footer">
    <p>Copyright ©2019  All Rights Reserved</p> 
     </div>
            </div>
        </center>
    </div>
    </form>
</body>
</html>
